home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Misc / msql-1.0.6 / src / msql / errmsg.h < prev    next >
C/C++ Source or Header  |  1995-05-28  |  7KB  |  167 lines

  1. /*
  2. **      errmsg.h  - Error messages
  3. **
  4. **
  5. ** Copyright (c) 1993  David J. Hughes
  6. **
  7. ** Permission to use, copy, and distribute for non-commercial purposes,
  8. ** is hereby granted without fee, providing that the above copyright
  9. ** notice appear in all copies and that both the copyright notice and this
  10. ** permission notice appear in supporting documentation.
  11. **
  12. ** This software is provided "as is" without any expressed or implied warranty.
  13. **
  14. ** ID = "$Id:"
  15. **
  16. */
  17.  
  18. /*
  19. ** German translations by Linux Nils <gl055@appl2.hrz.uni-siegen.de>
  20. */
  21.  
  22.  
  23.  
  24. /*************************************************************************
  25. **
  26. **    ENGLISH MESSAGES
  27. **
  28. */
  29.  
  30. #ifdef ENGLISH
  31.  
  32.    /* CLIENT LIBRARY MESSAGES */
  33.  
  34. #  define SOCKET_ERROR            "Can't create UNIX socket"
  35. #  define CONNECTION_ERROR        "Can't connect to local MSQL server"
  36. #  define IPSOCK_ERROR            "Can't create IP socket"
  37. #  define UNKNOWN_HOST            "Unknown MSQL Server Host (%s)"
  38. #  define CONN_HOST_ERROR         "Can't connect to MSQL server on %s"
  39. #  define SERVER_GONE_ERROR       "MSQL server has gone away"
  40. #  define UNKNOWN_ERROR           "Unknown MSQL error"
  41. #  define PACKET_ERROR             "Bad packet received from server"
  42. #  define USERNAME_ERROR        "Can't find your username. Who are you?"
  43. #  define VERSION_ERROR        \
  44.         "Protocol mismatch. Server Version = %d Client Version = %d"
  45.  
  46.    /* SERVER MESSAGE */
  47.  
  48. #  define CON_COUNT_ERROR    "Too many connections"
  49. #  define BAD_HOST_ERROR    "Can't get hostname for your address"
  50. #  define HANDSHAKE_ERROR    "Bad handshake"
  51. #  define ACCESS_DENIED_ERROR    "Access to database denied"
  52. #  define NO_DB_ERROR        "No Database Selected"
  53. #  define PERM_DENIED_ERROR    "Permission denied"
  54. #  define UNKNOWN_COM_ERROR    "Unknown command"
  55. #  define BAD_DIR_ERROR        "Can't open directory \"%s\""
  56. #  define BAD_TABLE_ERROR    "Unknown table \"%s\""
  57. #  define TABLE_READ_ERROR    "Error reading table \"%s\" definition"
  58. #  define TMP_MEM_ERROR        "Out of memory for temporary table"
  59. #  define TMP_CREATE_ERROR    "Couldn't create temporary table"
  60. #  define DATA_OPEN_ERROR    "Couldn't open data file for %s"
  61. #  define STACK_OPEN_ERROR    "Couldn't open stack file for %s"
  62. #  define WRITE_ERROR        "Data write failed"
  63. #  define KEY_WRITE_ERROR    "Write of key failed"
  64. #  define SEEK_ERROR        "Seek into data table failed!"
  65. #  define KEY_SEEK_ERROR    "Seek into key table failed!"
  66. #  define BAD_NULL_ERROR    "Field \"%s\" cannot be null"
  67. #  define FIELD_COUNT_ERROR    "Too many fileds in query"
  68. #  define TYPE_ERROR        "Literal value for \'%s\' is wrong type"
  69. #  define BAD_FIELD_ERROR    "Unknown field \"%s.%s\""
  70. #  define BAD_FIELD_2_ERROR    "Unknown field \"%s\""
  71. #  define COND_COUNT_ERROR    "Too many fields in condition"
  72. #  define ORDER_COUNT_ERROR    "Too many fields in order specification"
  73. #  define BAD_LIKE_ERROR    "Evaluation of LIKE clause failed"
  74. #  define UNQUAL_ERROR        "Unqualified field in comparison"
  75. #  define BAD_TYPE_ERROR    "Bad type for comparison of '%s'"
  76. #  define INT_LIKE_ERROR    "Can't perform LIKE on int value"
  77. #  define REAL_LIKE_ERROR    "Can't perform LIKE on real value"
  78. #  define BAD_DB_ERROR        "Unknown database \"%s\""
  79. #  define TABLE_EXISTS_ERROR    "Table \"%s\" exists"
  80. #  define TABLE_FAIL_ERROR    "Can't create table \"%s\""
  81. #  define TABLE_WIDTH_ERROR    "Too many fields in table (%d Max)"
  82. #  define CATALOG_WRITE_ERROR    "Error writing catalog"
  83. #  define KEY_CREATE_ERROR    "Creation of key table failed"
  84. #  define DATA_FILE_ERROR    "Error creating table file for \"%s\""
  85. #  define BAD_TABLE_ERROR    "Unknown table \"%s\""
  86. #  define NO_VALUE_ERROR    "No value specified for field '%s'"
  87. #  define NON_UNIQ_ERROR    "Field '%s' not unique"
  88. #  define KEY_UNIQ_ERROR    "Non unique key value in field '%s'"
  89. #  define UNSELECT_ERROR    "Reference to un-selected table \"%s\""
  90. #  define UNQUAL_JOIN_ERROR    "Unqualified field \"%s\" in join"
  91.  
  92. #endif
  93.  
  94.  
  95. /*************************************************************************
  96. **
  97. **    GERMAN MESSAGES
  98. **
  99. */
  100.  
  101.  
  102. #ifdef GERMAN
  103.  
  104.    /* CLIENT LIBRARY MESSAGES */
  105.  
  106. #  define SOCKET_ERROR         "Kann UNIX-Socket nicht anlegen"
  107. #  define CONNECTION_ERROR    "Keine Verbindung zu lokalem MSQL Server"
  108. #  define IPSOCK_ERROR       "Kann IP-Socket nicht anlegen"
  109. #  define UNKNOWN_HOST       "Unbekannter MSQL Server Host (%s)"
  110. #  define CONN_HOST_ERROR     "Keine Verbindung zu MSQL Server auf %s"
  111. #  define SERVER_GONE_ERROR    "MSQL Server nicht vorhanden"
  112. #  define UNKNOWN_ERROR        "Unbekannter MSQL Fehler"
  113. #  define PACKET_ERROR         "Fehlerhaftes Paket von Server empfangen "
  114. #  define USERNAME_ERROR       "Kann Usernamen nicht herausfinden."
  115. #  define VERSION_ERROR        \
  116.         "Protokolle ungleich. Server Version = % d Client Version = %d"
  117.  
  118.  
  119.    /* SERVER MESSAGE */
  120.  
  121. #  define CON_COUNT_ERROR    "Too many connections"
  122. #  define BAD_HOST_ERROR    "Can't get hostname for your address"
  123. #  define HANDSHAKE_ERROR    "Bad handshake"
  124. #  define ACCESS_DENIED_ERROR    "Access to database denied"
  125. #  define NO_DB_ERROR        "No Database Selected"
  126. #  define PERM_DENIED_ERROR    "Permission denied"
  127. #  define UNKNOWN_COM_ERROR    "Unknown command"
  128. #  define BAD_DIR_ERROR        "Can't open directory \"%s\""
  129. #  define BAD_TABLE_ERROR    "Unknown table \"%s\""
  130. #  define TABLE_READ_ERROR    "Error reading table \"%s\" definition"
  131. #  define TMP_MEM_ERROR        "Out of memory for temporary table"
  132. #  define TMP_CREATE_ERROR    "Couldn't create temporary table"
  133. #  define DATA_OPEN_ERROR    "Couldn't open data file for %s"
  134. #  define STACK_OPEN_ERROR    "Couldn't open stack file for %s"
  135. #  define WRITE_ERROR        "Data write failed"
  136. #  define KEY_WRITE_ERROR    "Write of key failed"
  137. #  define SEEK_ERROR        "Seek into data table failed!"
  138. #  define KEY_SEEK_ERROR    "Seek into key table failed!"
  139. #  define BAD_NULL_ERROR    "Field \"%s\" cannot be null"
  140. #  define FIELD_COUNT_ERROR    "Too many fileds in query"
  141. #  define TYPE_ERROR        "Literal value for \'%s\' is wrong type"
  142. #  define BAD_FIELD_ERROR    "Unknown field \"%s.%s\""
  143. #  define BAD_FIELD_2_ERROR    "Unknown field \"%s\""
  144. #  define COND_COUNT_ERROR    "Too many fields in condition"
  145. #  define ORDER_COUNT_ERROR    "Too many fields in order specification"
  146. #  define BAD_LIKE_ERROR    "Evaluation of LIKE clause failed"
  147. #  define UNQUAL_ERROR        "Unqualified field in comparison"
  148. #  define BAD_TYPE_ERROR    "Bad type for comparison of '%s'"
  149. #  define INT_LIKE_ERROR    "Can't perform LIKE on int value"
  150. #  define REAL_LIKE_ERROR    "Can't perform LIKE on real value"
  151. #  define BAD_DB_ERROR        "Unknown database \"%s\""
  152. #  define TABLE_EXISTS_ERROR    "Table \"%s\" exists"
  153. #  define TABLE_FAIL_ERROR    "Can't create table \"%s\""
  154. #  define TABLE_WIDTH_ERROR    "Too many fields in table (%d Max)"
  155. #  define CATALOG_WRITE_ERROR    "Error writing catalog"
  156. #  define KEY_CREATE_ERROR    "Creation of key table failed"
  157. #  define DATA_FILE_ERROR    "Error creating table file for \"%s\""
  158. #  define BAD_TABLE_ERROR    "Unknown table \"%s\""
  159. #  define NO_VALUE_ERROR    "No value specified for field '%s'"
  160. #  define NON_UNIQ_ERROR    "Field '%s' not unique"
  161. #  define KEY_UNIQ_ERROR    "Non unique key value in field '%s'"
  162. #  define UNSELECT_ERROR    "Reference to un-selected table \"%s\""
  163. #  define UNQUAL_JOIN_ERROR    "Unqualified field \"%s\" in join"
  164.  
  165. #endif
  166.  
  167.